home *** CD-ROM | disk | FTP | other *** search
- function moveFrame()
- {
- linewidth = mc_line._width - scroll._width;
- currentDistance = scroll._x - mc_line._x - scroll._width / 2;
- x = Math.round(currentDistance * mc_mov._totalframes / linewidth);
- this.mc_mov.gotoAndStop(x);
- }
- function moveScroll()
- {
- linewidth = mc_line._width - scroll._width;
- currentDistance = scroll._x - mc_line._x - scroll._width / 2;
- x = Math.round(linewidth * mc_mov._currentframe / mc_mov._totalframes);
- scroll._x = mc_line._x + scroll._width / 2 + x;
- }
- function controlMovie(mousePress)
- {
- if(mousePress)
- {
- this.onEnterFrame = function()
- {
- moveFrame();
- mc_mov.stop();
- };
- }
- else
- {
- this.onEnterFrame = function()
- {
- movescroll();
- };
- mc_play.gotoAndStop(2);
- mc_mov.play();
- }
- }
- if(!this.checkMovie)
- {
- loadMovie("mov/CityOfHeroes_movie_trailer.swf","mc_mov");
- this.checkMovie = true;
- }
- controlMovie();
- stop();
-